//
//  GXPlayView.h
//  SXH
//
//  Created by 龚啸 on 16/1/28.
//  Copyright © 2016年 lyss. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SpotEntity.h"
#import "ParkEntity.h"
typedef void(^btnPlayBlock)();
typedef void(^btnStopBlock)();
typedef void(^btnNavigationBlock)();
typedef void(^btnCloseBlock)();
typedef void(^btnContentPlayBlock)();
@interface GXPlayView : UIView
@property (weak, nonatomic) IBOutlet UIButton *btnPlay;
@property (weak, nonatomic) IBOutlet UIButton *btnStop;
@property (weak, nonatomic) IBOutlet UIProgressView *progressSlider;
@property (weak, nonatomic) IBOutlet UIImageView *viewImage;
@property (weak, nonatomic) IBOutlet UIImageView *recomendIcon;
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (strong,nonatomic)btnPlayBlock btnPlayBlock;
@property (strong,nonatomic)btnStopBlock btnStopBlock;
@property (strong,nonatomic)btnNavigationBlock btnNavigationBlock;
@property (strong,nonatomic)btnContentPlayBlock btnContentPlayBlock;
@property (strong,nonatomic)btnCloseBlock btnCloseBlock;
@property (weak, nonatomic) IBOutlet UIView *viewCor;
@property (strong,nonatomic)SpotEntity *entity;
@property (strong,nonatomic)ParkEntity *parkEntity;
+(instancetype)sharedInstance ;

-(void)doStopActionWithBlock:(btnStopBlock)blockStop
       doPlayActionWithBlock:(btnPlayBlock)blockPlay
 doNavigationActionWithBlock:(btnNavigationBlock)blockNavigation
            doCloseWithBlock:(btnCloseBlock)blockClose
doContentPlayActionWithBlock:(btnContentPlayBlock)blockContent;
@end
